package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import domain.Black;
import domain.example.BlackExample;
import mapper.BlackMapper;
import service.IBlackService;

@Service("BlackService")
public class BlackServiceImpl implements IBlackService {
	@Resource
	private BlackMapper blackMapper;
	
	@Override
	public int countByExample(BlackExample example) {
		return blackMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(BlackExample example) {
		return blackMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer blackId) {
		return blackMapper.deleteByPrimaryKey(blackId);
	}

	@Override
	public int insert(Black record) {
		return blackMapper.insert(record);
	}

	@Override
	public int insertSelective(Black record) {
		return blackMapper.insertSelective(record);
	}

	@Override
	public List<Black> selectByExample(BlackExample example) {
		return blackMapper.selectByExample(example);
	}

	@Override
	public Black selectByPrimaryKey(Integer blackId) {
		return blackMapper.selectByPrimaryKey(blackId);
	}

	@Override
	public int updateByExampleSelective(Black record, BlackExample example) {
		return blackMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Black record, BlackExample example) {
		return blackMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Black record) {
		return blackMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Black record) {
		return blackMapper.updateByPrimaryKey(record);
	}
	
}
